<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="pt" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <link href='http://fonts.googleapis.com/css?family=Merriweather+Sans:400,700' rel='stylesheet' type='text/css'/>
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<?php echo Yii::app()->bootstrap->registerCoreCss(); ?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
    <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
    
    <div class="bannerLogo">
        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.png" alt="">
    </div>
<div class="container" id="page">

	<div id="header">
		<!--<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div> -->
	</div><!-- header -->

	<div id="mainmenu">
		<?php 
                        $this->widget('zii.widgets.CMenu',array(
                        //$this->widget('application.extensions.mbmenu.MbMenu',array( 
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				//array('label'=>'Quem Somos', 'url'=>array('/site/page', 'view'=>'about')),
                                array('label'=>'Produtos', 'url'=>array('/pro/index')),/*
                                    'items'=>array(
                                                array('label'=>'Estetica', 'url'=>array('/produtos/index','Produtos_sort'=>'detalhe')),
                                                array('label'=>'sub 2 contact'),
                                              ),
                                            ),/*
                                            array('label'=>'Test',
                                              'items'=>array(
                                                array('label'=>'Sub 1', 'url'=>array('/site/page','view'=>'sub1')),
                                                array('label'=>'Sub 2',
                                                  'items'=>array(
                                                    array('label'=>'Sub sub 1', 'url'=>array('/site/page','view'=>'subsub1')),
                                                    array('label'=>'Sub sub 2', 'url'=>array('/site/page','view'=>'subsub2')),
                                                  ),
                                                ),
                                              ),
                                            ),*/
				array('label'=>'Contato', 'url'=>array('/site/contact')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                                array('label'=>'Produto ('.Yii::app()->user->name.')', 'url'=>array('/pro/create'), 'visible'=>!Yii::app()->user->isGuest),
                                array('label'=>'Oferta ('.Yii::app()->user->name.')', 'url'=>array('/ofer/create'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

	<?php echo $content; ?>

	<div class="clear"></div>

	

</div><!-- page -->
<div class="sombraFull">
        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/sombra.png" alt="">
    </div>
<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> feio por Infrastudio.<br/>
	</div><!-- footer -->
</body>
</html>
